#!/bin/sh
#BHEADER**********************************************************************
# Copyright (c) 2008,  Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
# This file is part of HYPRE.  See file COPYRIGHT for details.
#
# HYPRE is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License (as published by the Free
# Software Foundation) version 2.1 dated February 1999.
#
# $Revision: 1.6 $
#EHEADER**********************************************************************







#=============================================================================
# struct: timing and parallel scaling efficiency test
#=============================================================================

#=============================================================================
# Perform as a single psub process, throw away the first test in
# each configuration
#=============================================================================
#BATCH
mpirun -np 1 ./struct -n 30 30 30 -solver 11
mpirun -np 1 ./struct -n 30 30 30 -solver 11 > efficiency.out.0
mpirun -np 1 ./struct -n 30 30 30 -solver 11 > efficiency.out.1
mpirun -np 1 ./struct -n 30 30 30 -solver 11 > efficiency.out.2
#END

#BATCH
mpirun -np 8 ./struct -n 30 30 30 -P 2 2 2 -solver 11
mpirun -np 8 ./struct -n 30 30 30 -P 2 2 2 -solver 11 > efficiency.out.3
mpirun -np 8 ./struct -n 30 30 30 -P 2 2 2 -solver 11 > efficiency.out.4
mpirun -np 8 ./struct -n 30 30 30 -P 2 2 2 -solver 11 > efficiency.out.5
#END

#BATCH
mpirun -np 64 ./struct -n 30 30 30 -P 4 4 4 -solver 11
mpirun -np 64 ./struct -n 30 30 30 -P 4 4 4 -solver 11 > efficiency.out.6
mpirun -np 64 ./struct -n 30 30 30 -P 4 4 4 -solver 11 > efficiency.out.7
mpirun -np 64 ./struct -n 30 30 30 -P 4 4 4 -solver 11 > efficiency.out.8
#END
